package com.boarsoft.boar.sys.biz;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.boarsoft.boar.sys.SysLogBiz;
import com.boarsoft.boar.sys.entity.SysLog;
import com.boarsoft.common.Util;
import com.boarsoft.hibernate.biz.SimpleBizImpl;

@Component("sysLogBiz")
public class SysLogBizImpl extends SimpleBizImpl implements SysLogBiz {
	@Override
	@Transactional
	public void save(String uid, String txt, int flag) {
		SysLog o = new SysLog();
		o.setFlag(flag);
		o.setLog(txt);
		o.setTime(Util.getStdfDateTime());
		o.setUserId(uid);
		dao.save(o);
	}
}